package com.oedtech.esl.model.esl;


import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author QiuLongYu
 * @Date 2019/8/5
 */
@Entity
public class EslStatus {
    @Id
    @Column(name = "tiny_ip")
    private String tinyIP;
    private Date lastUpdateTime;
    private String battery;
    private String rssiValue;

    public EslStatus() {
    }

    public EslStatus(String tinyIP, Date lastUpdateTime, String battery, String rssiValue) {
        this.tinyIP = tinyIP;
        this.lastUpdateTime = lastUpdateTime;
        this.battery = battery;
        this.rssiValue = rssiValue;
    }



    public String getTinyIP() {
        return tinyIP;
    }

    public void setTinyIP(String tinyIP) {
        this.tinyIP = tinyIP;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getBattery() {
        return battery;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }

    public String getRssiValue() {
        return rssiValue;
    }

    public void setRssiValue(String rssiValue) {
        this.rssiValue = rssiValue;
    }

}
